//
//  WKAssetModel.h
//  Version1.0_RectiveCocoa
//
//  Created by ChiCo on 2018/1/30.
//  Copyright © 2018年 吴可高. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef enum : NSUInteger {
    WKAssetModelMediaTypePhoto = 0,
    WKAssetModelMediaTypeLivePhoto,
    WKAssetModelMediaTypePhotoGif,
    WKAssetModelMediaTypeVideo,
    WKAssetModelMediaTypeAudio
} WKAssetModelMediaType;

@class PHAsset;
@interface WKAssetModel : NSObject


@property (nonatomic, strong) PHAsset *asset;
@property (nonatomic, assign) BOOL isSelected;
@property (nonatomic, assign) WKAssetModelMediaType type;
@property (nonatomic, copy) NSString *timeLength;


+ (instancetype)modelWithAsset:(PHAsset *)asset type:(WKAssetModelMediaType)type;
+ (instancetype)modelWithAsset:(PHAsset *)asset type:(WKAssetModelMediaType)type timeLength:(NSString *)timeLength;


@end
